package reduce.fz.com.reduce.bean;

import java.io.Serializable;

/**
 * Created by qingshengzheng on 16/2/15.
 */
public class Tag implements Serializable {
    public static final int TYPE_TAG=0;
    public static final int TYPE_SOCIETY=1;
    public static final int TYPE_USER=2;
    public static final int TYPE_VIDEO=3;
    public Long bid;
    public String bname;
    public int cid;
    public String url;
    //内容类型
    public int ctype;

    public transient int backgroundResId;
    public transient boolean isChecked;
    public transient int leftDrawableResId;
    public transient int rightDrawableResId;
    public Tag(Long tagId, String bname) {
        this.bid = tagId;
        this.bname = bname;
    }
    public Tag()
    {

    }
    @Override
    public boolean equals(Object o) {
        if( o instanceof  Tag && o != null && bid != null ){
            try{
                return bid.equals(((Tag)o).bid);
            }catch (Throwable e){
                return false;
            }
        } else {
            return false;
        }
    }

}
